//==============================================================================
// SDL Tutorial 8
//==============================================================================
#ifndef _CAPP_H_
    #define _CAPP_H_

#include <SDL.h>
#include <SDL_ttf.h>

#include "Define.h"

#include "FPS.h"

#include "AppStateManager.h"

#include "Event.h"
#include "Surface.h"
#include "SoundBank.h"
#include "Player.h"

//==============================================================================
class CApp : public CEvent {
private:
		
    bool Running;
    SDL_Surface* Surf_Display;
    
public:
	
	static void addPlayer();
	static bool removePlayer(int ID);
    CApp();

    int OnExecute();

public:

    bool OnInit();
	void OnEvent(SDL_Event* Event);
	void OnExit();
    void OnLoop();
    void OnRender();
	void OnCleanup();
};

//==============================================================================

#endif
